package model;

import java.util.Collection;


public class Game {

	private Collection<Cell> cells;
	private Seed seed;

	public Game(Seed seed) {
		cells = seed.getCells();
		this.seed = seed;
	}
	
	public void tick(){
		for (Cell cell : cells) {
			cell.calculateNextState();
		}
		for (Cell cell : cells) {
			cell.update();
		}
	}

	public int getHeight() {
		return seed.getHeight();
	}

	public int getLenght() {
		return seed.getLength();
	}

	public Collection<Cell> getCells() {
		return this.cells;
	}

}
